package com.bw.apply.view

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.alibaba.android.arouter.facade.annotation.Route
import com.bw.apply.R
import com.bw.apply.databinding.ActivityApplyDetailBinding
import com.bw.apply.net.ApplyViewModel
import com.bw.base.constants.RoutePath
import com.bw.common.adapter.SeleteAdapter
import com.bw.common.entity.SeleteEntity
import com.bw.common.view.BaseMvvmActivity

@Route(path = RoutePath.PATH_APPLY_DETAIL)
class ApplyDetailActivity :  BaseMvvmActivity<ActivityApplyDetailBinding,ApplyViewModel>(){
    lateinit var seleteAdapter: SeleteAdapter
    override fun initView() {
        seleteAdapter = SeleteAdapter()
        binding.applyDetailTop.tvTitle.text = "审核管理"
        binding.applyDetailTop.ivBack.setOnClickListener { finish() }
        binding.applyDetailTop.ivMore.visibility = View.VISIBLE
        val list = arrayListOf<SeleteEntity>()
        list.add(SeleteEntity("全选",true))
        list.add(SeleteEntity("车位审核"))
        list.add(SeleteEntity("来访审核"))
        list.add(SeleteEntity("新闻审核"))
        binding.re1.adapter = seleteAdapter
        binding.re1.layoutManager = LinearLayoutManager(this,LinearLayoutManager.HORIZONTAL,false)
        seleteAdapter.data.addAll(list)
        seleteAdapter.notifyDataSetChanged()

    }

    override fun initData() {

    }

}